package com.example.controller; // 请根据你的包名修改

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

// 转发控制器
@Controller
public class ForwardController {

    @GetMapping(value = {"/chathome", "/", "/about", "/other-path","/navigation"}) // 添加所有你希望前端路由处理的路径
    public String forward() {
        return "forward:/index.html"; // 转发到 index.html
    }
}

